Telegram Group & Telegram Channel
🖥 Паттерн Хранитель (Memento) - поведенческий шаблон проектирования, позволяющий, не нарушая инкапсуляцию, зафиксировать и сохранить внутреннее состояние объекта так, чтобы позднее восстановить его в это состояние.

Шаблон Хранитель используется, когда:

необходимо сохранить снимок состояния объекта (или его части) для последующего восстановления
прямой интерфейс получения состояния объекта раскрывает детали реализации и нарушает инкапсуляцию объекта

В C# паттерн Memento может быть реализован с помощью комбинации трех классов: Originator, Memento и Caretaker.

Подробнее

@csharp_1001_notes
Please open Telegram to view this post
VIEW IN TELEGRAM



tg-me.com/csharp_1001_notes/406
Create:
Last Update:

🖥 Паттерн Хранитель (Memento) - поведенческий шаблон проектирования, позволяющий, не нарушая инкапсуляцию, зафиксировать и сохранить внутреннее состояние объекта так, чтобы позднее восстановить его в это состояние.

Шаблон Хранитель используется, когда:

необходимо сохранить снимок состояния объекта (или его части) для последующего восстановления
прямой интерфейс получения состояния объекта раскрывает детали реализации и нарушает инкапсуляцию объекта

В C# паттерн Memento может быть реализован с помощью комбинации трех классов: Originator, Memento и Caretaker.

Подробнее

@csharp_1001_notes

BY C# 1001 notes




Share with your friend now:
tg-me.com/csharp_1001_notes/406

View MORE
Open in Telegram


C 1001 notes Telegram | DID YOU KNOW?

Date: |

At a time when the Indian stock market is peaking and has rallied immensely compared to global markets, there are companies that have not performed in the last 10 years. These are definitely a minor portion of the market considering there are hundreds of stocks that have turned multibagger since 2020. What went wrong with these stocks? Reasons vary from corporate governance, sectoral weakness, company specific and so on. But the more important question is, are these stocks worth buying?

What Is Bitcoin?

Bitcoin is a decentralized digital currency that you can buy, sell and exchange directly, without an intermediary like a bank. Bitcoin’s creator, Satoshi Nakamoto, originally described the need for “an electronic payment system based on cryptographic proof instead of trust.” Each and every Bitcoin transaction that’s ever been made exists on a public ledger accessible to everyone, making transactions hard to reverse and difficult to fake. That’s by design: Core to their decentralized nature, Bitcoins aren’t backed by the government or any issuing institution, and there’s nothing to guarantee their value besides the proof baked in the heart of the system. “The reason why it’s worth money is simply because we, as people, decided it has value—same as gold,” says Anton Mozgovoy, co-founder & CEO of digital financial service company Holyheld.

C 1001 notes from sa


Telegram C# 1001 notes
FROM USA